## Loading required package: lattice
## Loading required package: mosaicData
## Loading required package: Matrix
##
## Attaching package: 'Matrix'
## The following object is masked from 'package:tidyr':
##
## expand
##
## The 'mosaic' package masks several functions from core packages in order to add additional features.
## The original behavior of these functions should not be affected by this.
##
## Attaching package: 'mosaic'
## The following object is masked from 'package:Matrix':
##
## mean
## The following objects are masked from 'package:dplyr':
##
## count, do, tally
## The following objects are masked from 'package:stats':
##
## binom.test, cor, cov, D, fivenum, IQR, median, prop.test,
## quantile, sd, t.test, var
## The following objects are masked from 'package:base':
##
## max, mean, min, prod, range, sample, sum
##
## Flipping 1 coin [ Prob(Heads) = 0.5 ] ...
##
## T
##
## Number of Heads: 0 [Proportion Heads: 0]
##
## Flipping 10 coins [ Prob(Heads) = 0.5 ] ...
##
## H H T T H H H H T T
##
## Number of Heads: 6 [Proportion Heads: 0.6]
## # A tibble: 10 × 4
## n heads tails prop
## <dbl> <dbl> <dbl> <dbl>
## 1 10 6 4 0.6
## 2 10 7 3 0.7
## 3 10 4 6 0.4
## 4 10 6 4 0.6
## 5 10 5 5 0.5
## 6 10 4 6 0.4
## 7 10 3 7 0.3
## 8 10 4 6 0.4
## 9 10 6 4 0.6
## 10 10 5 5 0.5
## # A tibble: 5 × 2
## heads count
## <dbl> <int>
## 1 3 1
## 2 4 3
## 3 5 2
## 4 6 3
## 5 7 1
## n heads tails prop
## 1 1 0 1 0
## 2 1 0 1 0
## 3 1 1 0 1
## V1 V2 V3 V4 V5 V6
## 1 2 1 3 1 2 2
## 2 1 2 1 2 2 1
## 3 6 3 1 6 6 5
## V1 V2 V3 V4 V5 V6
## 1 5 4 2 1 6 3
## 2 3 6 2 4 1 5
## 3 2 3 4 6 1 5